package me.zhengjie.minbearwcs.dao.rework.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.rework.inf.ReworkTaskRecordHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.rework.ReworkTaskRecordHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.history.ReworkTaskRecordHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ReworkTaskRecordHistoryImpl implements ReworkTaskRecordHistoryDao {

    private final ReworkTaskRecordHistoryMapper mapper;

    @Override
    public boolean insert(ReworkTaskRecordHistory reworkTaskRecordHistory) {
        return mapper.insert(reworkTaskRecordHistory) == 1;
    }

}
